package kr.hkit.powerjava.chapter26.test;

public class Employee {
		private int empNo;
		private String empName;
		private String title;
		private int manager;
		private int salary;
		private int dno;
		
		public Employee(){}
		
		public Employee(int empNo) {
			this.empNo = empNo;
		}

		public Employee(int empNo, String empName) {
			this.empNo = empNo;
			this.empName = empName;
		}

		public Employee(int empNo, String empName, String title, int manager,
				int salary, int dno) {
			this.empNo = empNo;
			this.empName = empName;
			this.title = title;
			this.manager = manager;
			this.salary = salary;
			this.dno = dno;
		}

		@Override
		public String toString() {
			return String
					.format("%5s\t%5s\t%5s\t%5s\t%10s\t%3s",
							empNo, empName, title, manager, salary, dno);
		}

		public int getEmpNo() {
			return empNo;
		}

		public void setEmpNo(int empNo) {
			this.empNo = empNo;
		}

		public String getEmpName() {
			return empName;
		}

		public void setEmpName(String empName) {
			this.empName = empName;
		}

		public String getTitle() {
			return title;
		}

		public void setTitle(String title) {
			this.title = title;
		}

		public int getManager() {
			return manager;
		}

		public void setManager(int manager) {
			this.manager = manager;
		}

		public int getSalary() {
			return salary;
		}

		public void setSalary(int salary) {
			this.salary = salary;
		}

		public int getDno() {
			return dno;
		}

		public void setDno(int dno) {
			this.dno = dno;
		}
		
	}
